package  com.senyint.imsdk;

public interface ISdkConfig extends java.io.Serializable{
	public static final String DEFAULT_ENCODNG = "utf-8";
	
	public static final Integer FILE_TYPE_IMAGE = 2;
	public static final Integer FILE_TYPE_VOICE = 3;
	public static final Integer FILE_TYPE_UNKOWN = 99; 
	
	/**
	 * default configuration for xmpp
	 */
//	public final static  String DEFAULT_HOST = "testim.cinyi.com" ;
	public final static  String DEFAULT_HOST = "192.168.0.112" ;
	public final static  int 	DEFAULT_PORT = 5222 ; 
	public final static  String DEFAULT_RESOURCE_NAME = "smack" ; 
	public static final String XMPP_PASSWORD = "security";
	
	/**
	 * 文件上传路径
	 */
	public static final String APP_UPLOAD_URI = "" ;
	/**
	 * 文件下载路径
	 */
	public static final String APP_DOWNLD_URI = "" ;
	
	/**
	 * fetch the user's offlinemessage
	 */
	public static final String APP_OFFLINE_MESSAGE_URI = "" ;
	public static final String APP_HISTORY_MESSAGE_URI = "" ;
	
	
	/**
	 * 
	 */
	public final static int ACTION_DONE = 1;
	public final static int ACTION_NONE = 0;
	
	public final static int SUCCESS = 1;
	public final static int FAILED = -1;
	
	/**
	 * 本地存储配置
	 */
	public static final String XMPP_HOST = "host";
	public static final String XMPP_PORT = "port";
	public static final String XMPP_SERVICE_NAME = "service";
	public static final String XMPP_RESOURCE_NAME = "resource";
	public static final String XMPP_USER_NAME = "user";
	public static final String USER_TOKEN = "usr_token";
	
	/**
	 * 通知用户重新登陆成功
	 */
	public static final String XMPP_USER_RECONNECT_SUCCESS = "com.senyint.ACTION.reconnect.success";
	public static final String XMPP_CONN_FAILED = "com.senyint.ACTION.reconnect.failed";
	public static final String XMPP_CONN_RECONNING = "com.senyint.ACTION.reconnect.ing";
	public static final String XMPP_CONN_ERROR = "com.senyint.ACTION.reconnect.error";
	public static final String XMPP_CONN_CLOSED  = "com.senyint.ACTION.reconnect.closed";
	public static final String XMPP_AUTH_SUCCESS  = "com.senyint.ACTION.auth.success";
	public static final String XMPP_AUTH_FAILED  = "com.senyint.ACTION.auth.failed";
	public static final String APP_KEY = "app_key";
	
	/**
	 * 通知用户登录冲突
	 */
	public static final String XMPP_USER_CONFLICT = "com.senyint.ACTION.conflict";


	public static final String EVENT_REQ_ALARM =  "com.android.dtp.ACTION.req.ALARM" ;      //check user's connection
    public static final String EVENT_REQ_LOGIN =  "com.android.dtp.ACTION.req.LOGIN" ;      //登入
    public static final String EVENT_REQ_LOGOUT =  "com.android.dtp.ACTION.req.LOGOUT" ;    //登出

    /**
     * login error for handler
     */
    public static final int MESSAGE_LOGIN_FAILED =  -1 ;
    /**
     * login successful for handler
     */
    public static final int MESSAGE_LOGIN_SUCCESS =  1 ;
    /**
     * login repeat
     */
    public static final int MESSAGE_LOGIN_AGAIN =  99 ;
    
	/**
	 *	登录状况标识
	 */
	public final static Integer LOGIN_SUCCESS = 1;
	public final static Integer LOGIN_CONNECTION_DISCONNECT = -40 ;
	public final static Integer LOGIN_USER_ALREADY_LOGIN = -99 ;
	public final static Integer LOGIN_FAIL = -1;

	public String getUserName();

	public String getServiceName();

	public String getResourceName();
	
	public String getUserJID();
	
	public String getPassword();
	
	public void clear();

	public String getHost();

	public Integer getPort();
	
}
